package com.situ.shoplook.dubbo;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.PropertySource;

@SpringBootApplication
@EnableCaching
@EnableDubbo
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@ComponentScan(basePackages = {"com.situ.shoplook"})
@PropertySource("classpath*:application.yml")
@MapperScan(basePackages = {"com.situ.shoplook.dubbo.dao"})

public class ShoplookDubboServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(ShoplookDubboServiceApplication.class, args);
    }

}
